
from selenium.webdriver.common.by import By
from src.Base.Base import Base
class Page(Base):
    # 输入内容      kw
    input_nr_loc = (By.ID,'kw')
    def input_nr(self,neirong):
        # self.send_keys(self.input_nr_loc,'我在做软件测试')
        self.send_keys(self.input_nr_loc,neirong)
    #点击
    click_nr_loc = (By.ID,'su')
    def click_nr(self):
        self.click(self.click_nr_loc)
    input_souso_loc = (By.XPATH,'/html/body/div[3]/div[4]/div[1]/div[3]')
    def biaoti(self):
        self.find_elements(self.input_souso_loc)

    def test_baidu_01(self,neirong):
        self.open_url('https://www.baidu.com//')
        self.input_nr(neirong)
        self.click_nr()
        self.biaoti()


